﻿<?php 
$conn = mysql_connect('54.64.179.139', 'opencart_user', 'Loveourwork888');
//$conn = mysql_connect('localhost', 'root', '');
mysql_select_db('daigoumumu', $conn);
$sql1="SELECT * FROM  `dg_sysconfig` where varname='sft_urls'";
$resultx=mysql_query($sql1);
$roes=mysql_fetch_array($resultx);

$sql2="SELECT * FROM  `dg_sysconfig` where varname='chongzhi'";
$result2=mysql_query($sql2);
$roe2=mysql_fetch_array($result2);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[{lang g_webname}] - {lang g_web_adv}</title>
<meta name="keywords" content="{$cfg_site_keywords}" />
<meta name="description" content="{$cfg_site_description}" />
<!--<link rel="stylesheet" type="text/css" href="css/layout.css">-->

<link type="text/css" rel="stylesheet" href="{TPL}css/NewTopFoot.css"  />
<link type="text/css" rel="stylesheet" href="{TPL}css/ShoppingCart.css"/>
</head>
<body>
	<!-- leeleng 2015-01-23 change position -->
<script type="text/javascript" charset="utf-8" src="{TPL}newedit/js/jquery-1.11.1.min.js"></script>
<!-- end -->
{template 'header'}

<link href="{TPL}newedit/css/public.css" rel="stylesheet" type="text/css" />
<link href="{TPL}newedit/css/index.css" rel="stylesheet" type="text/css" />

<script language="javascript" type="text/javascript">   
    $(document).ready(function(){		

        $(".d_daigou").click(function(){
            $(".jiantou").show();
			$("#CrawlUrl").focus();
        });
        $(".jiantou a").click(function(){
            $(this).parents(".jiantou").hide();
            return false;
        });		

	});
	
	
	
</script>
<!--banner-->

<div class="box">
	<div style="height:500px;" class="ulbox">
                <div class="ul_li">
                  <p>{lang i_recharge}</p>
                  <p class="breder_bottom"><a href="<?php echo $roes['value'];?>" target="_blank"><img src="/templates/default/newedit/images/li1.png" alt="" width="167" height="166"></a></p>
                </div>
                <div class="ul_li">
                  <p>{lang i_aution}</p>
                  <p class="breder_bottom"><a href="{url_cangwei.php}" id="shangchang"><img alt="" src="/templates/default/newedit/images/li5.jpg" style="padding-top:18px"></a></p>
                </div>
                <div class="ul_li d_daigou">
                  <p>{lang i_shop}</p>
                  <p class="breder_bottom"><a href="#" id="daigou"><img alt="" src="/templates/default/newedit/images/li2.png" style="padding-top:18px"></a></p>
                </div>
                <div class="ul_li">
                  <p>{lang i_ship}</p>
                  <p class="breder_bottom">
                  <a href="yundan.php"><img alt="" style="padding-top:18px" src="/templates/default/newedit/images/li3.png"></a></p>
                </div>
                <div class="ul_li ul_li4">
                  <p>{lang i_service}</p>
                  <p class="breder_bottom"><a href="<?php echo $roe2['value'];?>"><img alt="" src="/templates/default/newedit/images/li4.png"></a></p>
                </div>
                <div class="clear"></div>
            </div>
	<div class="jiantou" style="left:405px;top:160px"><a href="#"></a></div>
</div>
  


<div class="clear"></div>
<!--end box-->

{template 'footer'}
<script type="text/javascript" src="{TPL}js/indexSlide.js"></script>
<script type="text/javascript">
    $(function() {
        var e = function(n, b) {
            if (n.length > b) {
                return n.substring(0, b - 2) + "...";
            }
            return n;
        };		
		
        $.getJSON("/ajax/index_ajax.php?action=maqueeproduct&r=" + Math.random(),
        function(n) {
            var b = $("<ul></ul>");
            $("#Slider").empty().append(b);
            $.each(n,
            function(o, p) {
                b.append('<li><div class="detailed"><div class="pic"><a href="{url_see.php?type=}' + p.c + "#" + p.id + '"><img width=80 height=80 alt="' + p.n + '" src="' + p.p + '" /></a></div><div class="info"><h2><a href="{url_see.php?type=}' + p.c + "#" + p.id + '">' + e(p.n, 40) + "</a></h2><dl><dd><b>￥" + p.m + "</b><span>" + p.d + '</span></dd><dd class="i_bj">{lang Purchasing_information}：' + p.un + "{lang buywith}" + p.s + '</dd></dl></div></div><div class="concise"><p><a href="{url_see.php?type=}' + p.c + "#" + p.id + '">' + e(p.n, 25) + "</a></p><span>" + p.d + "</span></div></li>");
            }); (function(v, x) {
                var w = true;
                var u = b;
                var o = 0;
                var p;
                var t = 1;
                var y = u.find(".concise:eq(0)").outerHeight();
                u.scrollTop(0);
                u.children().each(function() {
                    o += $(this).outerHeight();
                });
                u.append(u.html());
                var q = u.find("li:eq(1)");
                $(q).find(".detailed").show();
                $(q).find(".concise").hide();
                var z = function() {
                    var s = u.scrollTop();
                    if (s >= o) {
                        q = u.find("li:eq(0)");
                        u.find(".detailed").hide();
                        $(q).find(".detailed").show();
                        $(q).find(".concise").hide();
                    }
                    u.scrollTop((s >= o ? 0 : s) + t);
                    if (u.scrollTop() % y == 0) {
                        r();
                    }
                };
                function r() {
                    t = 0;
                    if (w) {
                        setTimeout(function() {
                            $(q).find(".concise").show();
                            q = $(q).next("li:first");
                            if (!q) {
                                q = u.find("li:first");
                            }
                            u.find(".detailed").hide();
                            $(q).find(".detailed").show();
                            $(q).find(".concise").hide();
                            w = true;
                            t = 1;
                        },
                        x);
                    }
                    w = false;
                }
                u.find("li").mouseover(function() {
                    u.find(".detailed").hide();
                    $(this).find(".detailed").show();
                    $(this).find(".concise").hide();
                    clearInterval(p);
                });
                u.find("li").mouseout(function() {
                    u.find(".detailed").hide();
                    $(this).find(".concise").show();
                    $(q).find(".detailed").show();
                    $(q).find(".concise").hide();
                    p = setInterval(z, v);
                });
                p = setInterval(z, v);
            })(30, 3000);
        });
    });
</script></div>
</body>
</html>
